/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package modelo;

/**
 *
 * @author Cristian Perez
 */
public class Articulo {
    private int id;
    private long cod;
    private String descrip;
    private float preCosto;
    private float porc;
    private float preVenta;
    private int stkAct;
    private int stkMin;
    private Rubro rubro;

    public Articulo () {}

      public Articulo (long cod, String descrip, float pCosto, float porcent, float pVenta, int stkAct, int stkMin, Rubro rub) {
        this.setCod(cod);
        this.setDescrip(descrip);
        this.setPreCosto(pCosto);
        this.setPorc(porcent);
        this.setPreVenta(pVenta);
        this.setStkAct(stkAct);
        this.setStkMin(stkMin);
        this.setRubro(rub);
    }

    public Articulo (int id, long cod, String descrip, float pCosto, float porcent, float pVenta, int stkAct, int stkMin, Rubro rub) {
        this(cod, descrip, pCosto, porcent, pVenta, stkAct, stkMin, rub);
        this.setId(id);
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the cod
     */
    public long getCod() {
        return cod;
    }

    /**
     * @param cod the cod to set
     */
    public void setCod(long cod) {
        this.cod = cod;
    }

    /**
     * @return the descrip
     */
    public String getDescrip() {
        return descrip;
    }

    /**
     * @param descrip the descrip to set
     */
    public void setDescrip(String descrip) {
        this.descrip = descrip;
    }

    /**
     * @return the preCosto
     */
    public float getPreCosto() {
        return preCosto;
    }

    /**
     * @param preCosto the preCosto to set
     */
    public void setPreCosto(float preCosto) {
        this.preCosto = preCosto;
    }

    /**
     * @return the preVenta
     */
    public float getPreVenta() {
        return preVenta;
    }

    /**
     * @param preVenta the preVenta to set
     */
    public void setPreVenta(float preVenta) {
        this.preVenta = preVenta;
    }

    /**
     * @return the stkAct
     */
    public int getStkAct() {
        return stkAct;
    }

    /**
     * @param stkAct the stkAct to set
     */
    public void setStkAct(int stkAct) {
        this.stkAct = stkAct;
    }

    /**
     * @return the stkMin
     */
    public int getStkMin() {
        return stkMin;
    }

    /**
     * @param stkMin the stkMin to set
     */
    public void setStkMin(int stkMin) {
        this.stkMin = stkMin;
    }

    /**
     * @return the rubro
     */
    public Rubro getRubro() {
        return rubro;
    }

    /**
     * @param rubro the rubro to set
     */
    public void setRubro(Rubro rubro) {
        this.rubro = rubro;
    }

    /**
     * @return the porc
     */
    public float getPorc() {
        return porc;
    }

    /**
     * @param porc the porc to set
     */
    public void setPorc(float porc) {
        this.porc = porc;
    }
    
}
